﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AMVNewsParser
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            String STR = txbSTR.Text;
            Dictionary<string, string> keyGate = new Dictionary<string,string>();
            for(int i=0;i<txbSt.Lines.Length;i++)
                keyGate.Add(txbSt.Lines[i], txbEn.Lines[i]);

            try
            {
                label1.Text = Gl.GetSubstring(keyGate, ref STR);
            }
            catch { label1.Text = "<НЕТ>"; }

            label2.Text = STR;
        }

    }
}
